<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@include file="/WEB-INF/jsp/taglib.jsp" %>



<div class="reply-num">
    <b id="reply-num-word">${fn:length(activityReplyList)}条评论</b>
    <div id="line">
    </div>
</div>
<c:forEach var="activityReply" items="${activityReplyList}" varStatus="idx">
<div class="user-image" style="cursor: pointer" onclick="window.location.href='<spring:url value='/personalCenter/index/${activityReply.activityReplyUser}' />'"></div>
<div class="reply-content-container">
    <div class="reply-user-name">${activityReply.activityReplyUserName}</div>
    <div class="reply-content">${activityReply.activityCommitText}</div>
    <div class="reply-time-container">
        <div class="reply-more-container">
            <a id="open-reply${idx.index}" class="reply-more" onclick="showInfloor(${activityReply.activityReplyInfloorId},${idx.index},this)">回复</a>
            <a id="close-reply${idx.index}" class="reply-more close-reply" onclick="close_reply(this)" style="display: none;" >收起回复</a>
        </div>
        <div class="reply-time"><fmt:formatDate value="${activityReply.activityReplyDate}"  type="date" dateStyle="default"/></div>
    </div>
    <div class="reply-reply reply" id="reply-reply${idx.index}" style="display: none;">
        <div id="reply_infloor_list${idx.index}">
            <jsp:include page="/WEB-INF/jsp/frontend/activity/activityMainReplyInfloorList.jsp" flush="true"/>
        </div>

        <div class="my-reply">
            <div class="my-reply-button">
                <a id="open-my-reply${idx.index}" onclick="open_reply(this)"><p>我也说一句</p></a>
                <a id="close-my-reply${idx.index}" style="display: none;" onclick="close_reply(this)"><p>收起此回复</p></a>
            </div>
        </div>
        <div class="my-reply-container" id="my-reply${idx.index}" style="display: none">
            <div contenteditable="true" class="my-reply-content" id="infloor-reply${idx.index}"></div>
            <button class="my-reply-commit" name="submitButton" type="submit" onclick="infloorSend(${activityReply.activityReplyInfloorId}, ${idx.index})">发表</button>
        </div>

    </div>

</div>
</c:forEach>